package com.naiterui.ehp.bs.cms.modules.followup.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @author miaohui
 * @since 2022/3/11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dr_follow_up_record_form")
public class FollowUpRecordForm implements Serializable {
    private static final long serialVersionUID = 5520804911559407400L;


    @TableId
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "随访计划id")
    private Long followUpId;

    @ApiModelProperty(value = "随访表单id(cms后台原始创建id)")
    private Long followUpFormId;

    @ApiModelProperty(value = "表单id(mongo)")
    private String formId;

    @ApiModelProperty(value = "随访表单名称")
    private String formName;

    @ApiModelProperty(value = "填写状态 0.未填写 1.已填写")
    private Integer fillingStatus;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "填写时间")
    private Date submitAt;
}
